﻿<UserControl x:Class="Quizio.Views.Profile"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             mc:Ignorable="d" 
             d:DesignHeight="400" d:DesignWidth="400"
             DataContext="{Binding ProfileViewModel}">
    <Grid>
        <ScrollViewer Margin="0,10,0,-10">
            <StackPanel MinWidth="200">
                <TextBlock Text="Profil" Style="{StaticResource Heading2}" />
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Label Grid.Row="0" Grid.Column="0"  Content="Name" FontWeight="Bold" Margin="0,20"></Label>
                    <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Aggregator.User.Name, Mode=TwoWay}"  Margin="0,20"/>
                    <Label Grid.Row="1" Grid.Column="0"  Content="Passwort" FontWeight="Bold" Margin="0,20"></Label>
                    <PasswordBox x:Name="password" Grid.Row="1" Grid.Column="1" Margin="0,20"/>
                    <Label Grid.Row="2" Grid.Column="0"  Content="Email" FontWeight="Bold" Margin="0,20"></Label>
                    <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding Aggregator.User.Email, Mode=TwoWay}"  Margin="0,20"/>
                    <Label Grid.Row="3" Grid.Column="0"  Content="Location" FontWeight="Bold" Margin="0,20"></Label>
                    <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Aggregator.User.Location, Mode=TwoWay}"  Margin="0,20"/>
                    <Label Grid.Row="4" Grid.Column="0"  Content="Status" FontWeight="Bold"  Margin="0,20"></Label>
                    <TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Aggregator.User.Status, Mode=TwoWay}"  Margin="0,20"/>
                    <mui:ModernButton x:Name="save" Grid.Row="5" Grid.Column="0" Content="Speichern" 
                                      Command="{Binding UpdateUserSettings}"
                                      Margin="0,20">
                    </mui:ModernButton>
                </Grid>
            </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
